//
//  BannerAdView.h
//  ebook
//
//  Created by 吴超飞 on 2016/11/23.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaiduMobAdSDK/BaiduMobAdDelegateProtocol.h"
#import "BaiduMobAdSDK/BaiduMobAdView.h"
#import "BaiduMobAdSDK/BaiduMobAdSetting.h"
#import "BaiduMobAdSDK/BaiduMobAdSplash.h"

//@import GoogleMobileAds;
@class GADBannerView;

#define kBaiduBannerAdHeight 100//MTScreenW*0.15
#define kGoogleBannerAdHeight 100

typedef enum{
    BannerAdInSearch//书城搜索
} BannerAdLocation;

typedef enum{
    BannerAdBaidu,//百度
    BannerAdGoogle,//Google
    BannerAdJusha//巨鲨
} BannerAdType;

@class BannerAdView;
@protocol BannerAdViewDelegate <NSObject>

-(void)bannerAdView:(BannerAdView *)view didLoadBannerAdHeight:(float)height;
-(void)bannerAdViewClose:(BannerAdView *)view;//横幅广告关闭

@end


@interface BannerAdView : UIView

@property (nonatomic,weak) id<BannerAdViewDelegate> delegate;

- (void)showAdInController:(UIViewController *)controller location:(BannerAdLocation)location;

@end
